package com.xjscrm.server;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.uzai.trace.EnableTrace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Auther: jianghan
 * @Date: 2020/12/29 16:58
 * @Description:
 */
@EnableTrace
@EnableConfigurationProperties
@EnableAsync
@ServletComponentScan
@EnableScheduling
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@ComponentScan("com.xjscrm.*")
public class Application {

    private static final Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(Application.class);
        app.run(args);
        logger.info("scrm-server service start success.");
    }
}
